<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();//取项目名
String basePath = request.getScheme()+"://"+request.getServerName()+":"+
request.getServerPort()+path+"/";//取协议 主机名 端口
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>"><!-- base修改当前页面的上下文 ,无论当前实际目录是什么 相对路径都从项目根目录开始算，因为当前basePath的值是当前目录-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="text/javascript" src="static/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="static/js/ajaxfileupload.js"></script>
    <script type="text/javascript" src="static/js/upload.js"></script>
    <script type="text/javascript" src="static/js/jquery.validate.js"></script>
    <script type="text/javascript" src="static/js/messages_zh.js"></script>
    <script type="text/javascript" src="static/js/customer/addValidate.js"></script>
    <script type="text/javascript" src="static/js/customer/add.js"></script>

</head>
<body>
<div class="upload">
    <div id="head"><img class="uploadImg" src=""/></div>
    <!-- enctype="multipart/form-data" 可以将数据分成多部分上传 -->
    <form enctype="multipart/form-data" method="post" name="fileinfo">
        <input type="file" id="file" class="file" name="file"><!-- type file固定类型 -->
        <input id="upload" type="button" value="上传">
        <input type="hidden" class="subfolder" value="head">
    </form>
</div>

 <div class="form">
     <form  class="regForm" id="regForm">
         <fieldset>
             <legend>添加会员</legend><!-- 标题 fieldset 搭配 legend 形成标题嵌入到边框 -->

             <div><label>会员编号:</label><input type="text" name="cid"  required>
                 <span data-right-tip="会员格式正确" data-error-tip="请填写正确的姓名" ></span>
             </div>
             <div><label>姓名:</label><input type="text" name="cname"  required>
                 <span data-right-tip="会员格式正确" data-error-tip="请填写正确的姓名" ></span>
             </div>
             <div><label>性别:</label>   男:<input type="radio" name="csex" value="男"  checked="checked">
                 女:<input type="radio" name="msex" value="女"></div>

             <div><label>密码:</label><input id="mpwd"  type="number" name="cpwd"  required>
                 <span data-right-tip="密码格式正确" data-error-tip="请填写正确的密码"></span>
             </div>
             <div><label>确认密码:</label><input  type="number" name="rempwd" required>
                 <span data-right-tip="两次密码一致" data-error-tip="两次密码不一致"></span>
             </div>
             <div><label>出生日期:</label><input type="date" name="mbirthday"  required>
                 <span data-right-tip="生日格式正确" data-error-tip="请填写正确的生日"></span>
             </div>

             <div><label>邮箱:</label><input type="email" name="memail"  required>
                 <span data-right-tip="邮箱格式正确" data-error-tip="请填写正确的邮箱"></span>
             </div>


             <div><label>余额:</label><input type="text" name="ccost"  required>
                 <span data-right-tip="个人信息格式正确" data-error-tip="请填写正确的个人信息"></span>
             </div>
             <div><label>身高:</label><input type="text" name="chigh"  required>
                 <span data-right-tip="个人信息格式正确" data-error-tip="请填写正确的个人信息"></span>
             </div>
             <div><label>体重:</label><input type="text" name="cweight"  required>
                 <span data-right-tip="个人信息格式正确" data-error-tip="请填写正确的个人信息"></span>
             </div>
             <div><label>体脂比:</label><input type="text" name="bodyfat"  required>
                 <span data-right-tip="个人信息格式正确" data-error-tip="请填写正确的个人信息"></span>
             </div>
             <div><label>电话号码:</label><textarea type="" name="cdesc"  required></textarea>
                 <span data-right-tip="联系电话格式正确" data-error-tip="请填写正确的联系电话"></span>
             </div>
             <div>
                 <input type="text" name="chead" class="uploadimgsrc">
             </div>
             <div id="submitDiv"><button class="addButton">添加会员</button></div>

         </fieldset>
  </form>

 </div>
</body>
</html>